﻿<%@ Page Title="SicoNide Furnace" Language="C#" MasterPageFile="~/TableMaster.master" AutoEventWireup="true" CodeFile="SicoNideFurnace.aspx.cs" Inherits="Pages_SicoNideFurnace" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <style>
        @media only screen and (max-width: 760px), (min-device-width: 768px) and (max-device-width: 1024px) {

            .resTbl tr:nth-of-type(odd) {
                background-color: #CDE2FF;
            }

            .resTbl tr:nth-of-type(1) {
                display: none;
            }

            .resTbl td:nth-of-type(1):before {
                content: "Start Date";
            }

            .resTbl td:nth-of-type(2):before {
                content: "Operator Loading";
            }

            .resTbl td:nth-of-type(3):before {
                content: "Finish Date";
            }

            .resTbl td:nth-of-type(4):before {
                content: "Operator Unloading";
            }

            .resTbl td:nth-of-type(5):before {
                content: "Charge Number";
            }

            .resTbl td:nth-of-type(6):before {
                content: "N2_K - m3";
            }

            .resTbl td:nth-of-type(7):before {
                content: "Ar_Pressure";
            }

            .resTbl td:nth-of-type(8):before {
                content: "H2_Pressure";
            }

            .resTbl td:nth-of-type(9):before {
                content: "He_Pressure";
            }

            .resTbl td:nth-of-type(10):before {
                content: "N2 K M3 End";
            }

            .resTbl td:nth-of-type(11):before {
                content: "Ar Pressure End";
            }

            .resTbl td:nth-of-type(12):before {
                content: "H2 Pressure End";
            }

            .resTbl td:nth-of-type(13):before {
                content: "He Pressure End";
            }

            .resTbl td:nth-of-type(14):before {
                content: "Remark";
            }

            .resTbl td:nth-of-type(15):before {
                content: "Created By";
            }

            .resTbl td:nth-of-type(16):before {
                content: "Created Date";
            }
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="FeaturedContent" runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="Add" runat="Server">



    <asp:Panel ID="pnlAdd" runat="server">

        <table cellpadding="0" cellspacing="0" style="width: 100%;">

            <tr>
                <td style="width: 170px">
                    <asp:Label ID="lblStart_Date" runat="server" AssociatedControlID="txtStart_Date" Text="Start Date:"></asp:Label>
                </td>
                <td colspan="4">
                    <asp:TextBox ID="txtStart_Date" runat="server" type="date"></asp:TextBox>
                </td>
            </tr>

            <tr>
                <td style="width: 170px">
                    <asp:Label ID="lblOperator_Loading" runat="server" AssociatedControlID="ddlOperator_Loading" Text="Operator Loading:"></asp:Label>
                </td>
                <td colspan="4">
                    <asp:DropDownList ID="ddlOperator_Loading" runat="server" DataSourceID="Ds_Operators" DataTextField="FIRST_NAME" DataValueField="USER_CODE" OnDataBound="ddlOperator_Loading_DataBound"></asp:DropDownList>
                    <asp:ObjectDataSource ID="Ds_Operators" runat="server" SelectMethod="selectAll" TypeName="DAL_tbl_employee_master"></asp:ObjectDataSource>
                </td>
            </tr>

            <tr>
                <td style="width: 170px">
                    <asp:Label ID="lblFinish_Date" runat="server" AssociatedControlID="txtFinish_Date" Text="Finish Date:"></asp:Label>
                </td>
                <td colspan="4">
                    <asp:TextBox ID="txtFinish_Date" runat="server" type="date"></asp:TextBox>
                </td>
            </tr>

            <tr>
                <td style="width: 170px">
                    <asp:Label ID="lblOperator_Unloading" runat="server" AssociatedControlID="ddlOperator_Unloading" Text="Operator Unloading:"></asp:Label>
                </td>
                <td colspan="4">
                    <asp:DropDownList ID="ddlOperator_Unloading" runat="server" DataSourceID="Ds_Operators" DataTextField="FIRST_NAME" DataValueField="USER_CODE" OnDataBound="ddlOperator_Unloading_DataBound"></asp:DropDownList>
                </td>
            </tr>

            <tr>
                <td style="width: 170px">
                    <asp:Label ID="lblCharge_Number" runat="server" AssociatedControlID="txtCharge_Number" Text="Charge Number:"></asp:Label>
                </td>
                <td colspan="4">
                    <asp:TextBox ID="txtCharge_Number" runat="server" Validate="Number"></asp:TextBox>
                </td>
            </tr>

            <tr>
                <td style="width: 170px">
                    <asp:Label ID="lblN2_K_m3_start" runat="server" AssociatedControlID="txtN2_K_m3_start" Text="N₂_ kNm³:"></asp:Label>
                </td>
                <td>
                    <asp:Label ID="lblWeight_Start_of_Process" runat="server" Text="Weight at Start of Process"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txtN2_K_m3_start" runat="server" Validate="Decimal"></asp:TextBox>
                </td>
                <td>
                    <asp:Label ID="lblWeight_End_of_Process" runat="server" Text="Weight at End of Process"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txtN2_K_m3_end" runat="server" Validate="Decimal"></asp:TextBox>
                </td>
            </tr>

            <tr>
                <td style="width: 170px">
                    <asp:Label ID="lblAr_Pressure_start" runat="server" AssociatedControlID="txtAr_Pressure_start" Text="Ar_bar:"></asp:Label>
                </td>
                <td>
                    <asp:Label ID="Label1" runat="server" Text="Pressure at Start of Process"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txtAr_Pressure_start" runat="server" Validate="Decimal"></asp:TextBox>
                </td>
                <td>
                    <asp:Label ID="Label2" runat="server" Text="Pressure at End of Process"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txtAr_Pressure_end" runat="server" Validate="Decimal"></asp:TextBox>
                </td>
            </tr>

            <tr>
                <td style="width: 170px">
                    <asp:Label ID="lblH2_Pressure_start" runat="server" AssociatedControlID="txtH2_Pressure_start" Text="H₂_ bar:"></asp:Label>
                </td>
                <td>
                    <asp:Label ID="Label3" runat="server" Text="Pressure at Start of Process"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txtH2_Pressure_start" runat="server" Validate="Decimal"></asp:TextBox>
                </td>
                <td>
                    <asp:Label ID="Label4" runat="server" Text="Pressure at End of Process"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txtH2_Pressure_end" runat="server" Validate="Decimal"></asp:TextBox>
                </td>
            </tr>

            <tr>
                <td style="width: 170px">
                    <asp:Label ID="lblHe_Pressure_start" runat="server" AssociatedControlID="txtHe_Pressure_start" Text="He_bar:"></asp:Label>
                </td>
                <td>
                    <asp:Label ID="Label5" runat="server" Text="Pressure at Start of Process"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txtHe_Pressure_start" runat="server" Validate="Decimal"></asp:TextBox>
                </td>
                <td>
                    <asp:Label ID="Label6" runat="server" Text="Pressure at End of Process"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txtHe_Pressure_end" runat="server" Validate="Decimal"></asp:TextBox>
                </td>
            </tr>

            

            <tr>
                <td style="width: 170px">
                    <asp:Label ID="lblRemark" runat="server" AssociatedControlID="txtRemark" Text="Remark:"></asp:Label>
                </td>
                <td colspan="4">
                    <asp:TextBox ID="txtRemark" runat="server" TextMode="MultiLine" Height="58px" Width="232px"></asp:TextBox>
                </td>
            </tr>

            


            <tr>
                <td style="width: 170px">&nbsp;</td>
                <td colspan="4">

                    <asp:Button ID="btnSave" runat="server" CssClass="btn btn-success" OnClick="btnSave_Click" Text="Save" Width="90px" />
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <asp:Button ID="btnCancel" runat="server" CssClass="btn btn-danger" OnClick="btnCancel_Click" Text="Cancel" Width="90px" />

                </td>
            </tr>

        </table>

    </asp:Panel>


</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="Grid" runat="Server">


    <asp:Panel ID="pnlList" runat="server">
        <asp:GridView ID="gridClients" runat="server" AutoGenerateColumns="False" CssClass="resTbl" DataSourceID="DS_tbl_siconide_furnace">
            <Columns>
                <asp:BoundField DataField="Start_Date" HeaderText="Start Date" SortExpression="Start_Date" DataFormatString="{0:yyMMdd}"/>
                <asp:BoundField DataField="Operator_Loading" HeaderText="Operator Loading" SortExpression="Operator_Loading" />
                <asp:BoundField DataField="Finish_Date" HeaderText="Finish Date" SortExpression="Finish_Date" DataFormatString="{0:yyMMdd}"/>
                <asp:BoundField DataField="Operator_Unloading" HeaderText="Operator Unloading" SortExpression="Operator_Unloading" />
                <asp:BoundField DataField="Charge_Number" HeaderText="Charge Number" SortExpression="Charge_Number" />
                <asp:BoundField DataField="N2_K_m3_start" HeaderText="N2_K - m3" SortExpression="N2_K_m3_start" />
                <asp:BoundField DataField="Ar_Pressure_start" HeaderText="Ar_Pressure" SortExpression="Ar_Pressure_start" />
                <asp:BoundField DataField="H2_Pressure_start" HeaderText="H2_Pressure" SortExpression="H2_Pressure_start" />
                <asp:BoundField DataField="He_Pressure_start" HeaderText="He_Pressure" SortExpression="He_Pressure_start" />
                <asp:BoundField DataField="N2_K_m3_end" HeaderText="N2 K M3 End" SortExpression="N2_K_m3_end" />
                <asp:BoundField DataField="Ar_Pressure_end" HeaderText="Ar Pressure End" SortExpression="Ar_Pressure_end" />
                <asp:BoundField DataField="H2_Pressure_end" HeaderText="H2 Pressure End" SortExpression="H2_Pressure_end" />
                <asp:BoundField DataField="He_Pressure_end" HeaderText="He Pressure End" SortExpression="He_Pressure_end" />
                <asp:BoundField DataField="Remark" HeaderText="Remark" SortExpression="Remark" />
                <asp:BoundField DataField="CREATED_BY" HeaderText="Created By" SortExpression="CREATED_BY" />
                <asp:BoundField DataField="CREATED_DATE" HeaderText="Created Date" SortExpression="CREATED_DATE" DataFormatString="{0:yyMMdd}"/>

                <asp:TemplateField HeaderText="Edit">
                    <ItemTemplate>
                        <asp:LinkButton ID="linkEdit" runat="server" Text="Edit" CommandArgument='<%# Eval("ID") %>' OnClick="linkEdit_Click"></asp:LinkButton>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Delete">
                    <ItemTemplate>
                        <asp:LinkButton ID="linkDelete" CommandName="delete" runat="server" Text="Delete" OnClientClick="javascript:return confirm('Are you sure you want to delete this record?');" CommandArgument='<%# Eval("ID") %>' OnClick="linkDelete_Click"></asp:LinkButton>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
        <asp:ObjectDataSource ID="DS_tbl_siconide_furnace" runat="server" SelectMethod="selectAllForGrid" DeleteMethod="delete" InsertMethod="insert" UpdateMethod="update" TypeName="DAL_tbl_siconide_furnace">
            <DeleteParameters>
                <asp:Parameter Name="ID" Type="Int32" />
            </DeleteParameters>
            <InsertParameters>
                <asp:Parameter Name="Start_Date" Type="DateTime" />
                <asp:Parameter Name="Operator_Loading" Type="String" />
                <asp:Parameter Name="Finish_Date" Type="DateTime" />
                <asp:Parameter Name="Operator_Unloading" Type="String" />
                <asp:Parameter Name="Charge_Number" Type="Decimal" />
                <asp:Parameter Name="N2_K_m3_start" Type="Decimal" />
                <asp:Parameter Name="Ar_Pressure_start" Type="Decimal" />
                <asp:Parameter Name="H2_Pressure_start" Type="Decimal" />
                <asp:Parameter Name="He_Pressure_start" Type="Decimal" />
                <asp:Parameter Name="N2_K_m3_end" Type="Decimal" />
                <asp:Parameter Name="Ar_Pressure_end" Type="Decimal" />
                <asp:Parameter Name="H2_Pressure_end" Type="Decimal" />
                <asp:Parameter Name="He_Pressure_end" Type="Decimal" />
                <asp:Parameter Name="Remark" Type="String" />
                <asp:Parameter Name="CREATED_BY" Type="String" />
                <asp:Parameter Name="CREATED_DATE" Type="DateTime" />
            </InsertParameters>
            <UpdateParameters>
                <asp:Parameter Name="Start_Date" Type="DateTime" />
                <asp:Parameter Name="Operator_Loading" Type="String" />
                <asp:Parameter Name="Finish_Date" Type="DateTime" />
                <asp:Parameter Name="Operator_Unloading" Type="String" />
                <asp:Parameter Name="Charge_Number" Type="Decimal" />
                <asp:Parameter Name="N2_K_m3_start" Type="Decimal" />
                <asp:Parameter Name="Ar_Pressure_start" Type="Decimal" />
                <asp:Parameter Name="H2_Pressure_start" Type="Decimal" />
                <asp:Parameter Name="He_Pressure_start" Type="Decimal" />
                <asp:Parameter Name="N2_K_m3_end" Type="Decimal" />
                <asp:Parameter Name="Ar_Pressure_end" Type="Decimal" />
                <asp:Parameter Name="H2_Pressure_end" Type="Decimal" />
                <asp:Parameter Name="He_Pressure_end" Type="Decimal" />
                <asp:Parameter Name="Remark" Type="String" />
                <asp:Parameter Name="UPDATED_BY" Type="String" />
                <asp:Parameter Name="UPDATED_DATE" Type="DateTime" />
            </UpdateParameters>
        </asp:ObjectDataSource>
    </asp:Panel>
</asp:Content>

